Matthias Clasen [Mon, 30 Jul 2018 21:59:16 +0000 (17:59 -0400)]
color picker: Better debug spew
This will help in debugging issues.
Matthias Clasen [Thu, 26 Jul 2018 22:50:03 +0000 (18:50 -0400)]
Add a color picker implementation for gnome-shell
This adds a GtkColorPicker implementation that talks
to gnome-shell to get a color.
Matthias Clasen [Thu, 26 Jul 2018 22:48:37 +0000 (18:48 -0400)]
Add a color picker implementation for portals
This adds a GtkColorPicker implementation that talks
to the screnshot portal to get a color.
Matthias Clasen [Thu, 26 Jul 2018 22:46:37 +0000 (18:46 -0400)]
color editor: Add a color picker button
The button is shown if we have a GtkColorPicker implementation.
Currently, there are none, so the button is never shown.
Matthias Clasen [Thu, 26 Jul 2018 22:45:49 +0000 (18:45 -0400)]
Add a color picker interface
This will be used in the color chooser, in subsequent commits.
Piotr Drąg [Mon, 30 Jul 2018 20:44:10 +0000 (22:44 +0200)]
Update POTFILES.in
Matthias Clasen [Mon, 30 Jul 2018 19:31:37 +0000 (19:31 +0000)]
Merge branch 'wl_text_input_clean' into 'gtk-3-24'
Replace gtk_text_input with text_input_unstable_v3 support
See merge request GNOME/gtk!272
Dorota Czaplejewicz [Thu, 29 Mar 2018 17:49:10 +0000 (19:49 +0200)]
imwayland: Add text-input-unstable-v3 support
The wayland input module now represents text-input-unstable-v3 support, while the old module supporting gtk-text-input was renamed to gtkwayland.
Matthias Clasen [Mon, 30 Jul 2018 14:53:48 +0000 (14:53 +0000)]
Merge branch 'issue1214-tooltips-win32' into 'gtk-3-24'
Gdk-Win32: Correct handling of transient state changes
See merge request GNOME/gtk!248
Piotr Drąg [Sun, 29 Jul 2018 18:24:41 +0000 (20:24 +0200)]
Update Polish translation
Matthias Clasen [Sun, 29 Jul 2018 13:08:05 +0000 (13:08 +0000)]
Updates
Matthias Clasen [Fri, 27 Jul 2018 11:56:56 +0000 (11:56 +0000)]
Include Emoji category icons as resources too
These icons are very new in the Adwaita icon theme, so we can't
rely on them being widely available, and will just include them
for now.
Matthias Clasen [Thu, 19 Jul 2018 21:24:11 +0000 (17:24 -0400)]
Emoji chooser: Use icons for sections
This is more reliable than using text-style Emoji
which may not be present.
Based on work by Julian Sparber.
Aurimas Černius [Sat, 28 Jul 2018 17:31:14 +0000 (20:31 +0300)]
Updated Lithuanian translation
Carlos Garnacho [Sat, 28 Jul 2018 10:14:56 +0000 (10:14 +0000)]
Merge branch 'wip/chergert/imwayland-leak' into 'gtk-3-24'
imwayland: fix potential leak of attr list
See merge request GNOME/gtk!277
Christian Hergert [Sat, 28 Jul 2018 06:46:31 +0000 (23:46 -0700)]
imwayland: fix potential leak of attr list
This fixes a potential leak of a PangoAttrList that is set when chaining
up to the parent get_preedit_string(). We check to see if the attr list
was created and reuse it instead of leaking the previous value.
Luca Bacci [Tue, 17 Jul 2018 10:01:54 +0000 (12:01 +0200)]
Gdk-Win32: Correct handling of transient state changes
gdk_win32_window_set_transient_for() behaves incorrectly when
called in sequence with the same arguments. This fix ensures it
always operates correctly.
In some cases this function gets called multiple times with the
same arguments, e.g. when tooltips are shown.
See issue #1214
Benjamin Otte [Tue, 24 Jul 2018 17:44:36 +0000 (19:44 +0200)]
gtk; Deprecate gtk_render_frame_gap()
Use gtk_render_frame() instead.
Benjamin Otte [Tue, 24 Jul 2018 18:32:06 +0000 (20:32 +0200)]
gdk: Add GDK_DEPRECATED_IN_3_24() macros
Daniel Mustieles [Tue, 24 Jul 2018 08:13:50 +0000 (10:13 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 23 Jul 2018 10:07:23 +0000 (10:07 +0000)]
Update Spanish translation
Daniel Mustieles [Mon, 23 Jul 2018 10:02:39 +0000 (10:02 +0000)]
Update Spanish translation
Matthias Clasen [Sun, 22 Jul 2018 17:14:27 +0000 (17:14 +0000)]
Merge branch 'gtk-3-24-add-spinner-to-sidebar-row' into 'gtk-3-24'
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
See merge request GNOME/gtk!260
segfault [Sun, 22 Jul 2018 11:47:46 +0000 (13:47 +0200)]
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
Bastien Nocera [Sat, 21 Jul 2018 12:50:37 +0000 (14:50 +0200)]
test: Fix compile-time warnings
testsuite/gtk/notify.c: In function ‘test_type’:
testsuite/gtk/notify.c:434:14: warning: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GtkSettings *’ {aka ‘struct _GtkSettings *’} [-Wincompatible-pointer-types]
instance = g_object_ref (gtk_settings_get_default ());
^
testsuite/gtk/notify.c:443:16: warning: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GdkWindow *’ {aka ‘struct _GdkWindow *’} [-Wincompatible-pointer-types]
instance = g_object_ref (gdk_window_new (NULL, &attributes, 0));
^
Carlos Garnacho [Fri, 16 Feb 2018 18:25:15 +0000 (19:25 +0100)]
gtksettings: Remove leftover code
The immodule variable is unused
Tim Sabsch [Fri, 20 Jul 2018 20:31:47 +0000 (20:31 +0000)]
Update German translation
Matthias Clasen [Fri, 20 Jul 2018 14:07:44 +0000 (14:07 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
Remove deprecated functions
See merge request GNOME/gtk!255
Benjamin Otte [Fri, 20 Jul 2018 14:05:12 +0000 (14:05 +0000)]
Merge branch 'wip/muktupavels/deprecate-gtk-css-provider-get-default' into 'gtk-3-24'
gtkcssprovider: deprecate gtk_css_provider_get_default
See merge request GNOME/gtk!257
Alberts Muktupāvels [Thu, 19 Jul 2018 16:20:50 +0000 (19:20 +0300)]
gtkcssprovider: deprecate gtk_css_provider_get_default
This function is unused since
cdc6e8272020 commit and does not
contain fallback style.
https://gitlab.gnome.org/GNOME/gtk/issues/1226
Emin Tufan Çetin [Fri, 20 Jul 2018 11:21:46 +0000 (11:21 +0000)]
Update Turkish translation
Yi-Soo An [Fri, 20 Jul 2018 06:42:26 +0000 (15:42 +0900)]
tests/animated-resizing: Remove deprecated functions
The functions as below are deprecated
- gdk_screen_get_monitor_geometry
- gdk_screen_get_primary_monitor
Instead of them, use functions below
- gdk_monitor_get_geometry
- gdk_display_get_primary_monitor
Yi-Soo An [Fri, 20 Jul 2018 06:40:37 +0000 (15:40 +0900)]
demos/gtk-demo/changedisplay: Remove deprecated gdk_flush
Use gdk_display_flush instead of it.
Yi-Soo An [Fri, 20 Jul 2018 06:39:49 +0000 (15:39 +0900)]
modules/input/gtkimcontextthai: Remove deprecated gdk_beep
Use gdk_display_beep instead of it.
Timm Bäder [Fri, 20 Jul 2018 06:24:14 +0000 (06:24 +0000)]
Merge branch '628-text-view-width' into 'gtk-3-24'
Resolve #628: "TextView: spaces acting as non-breaking whitespace if :left- or :right-margin is set"
See merge request GNOME/gtk!236
Matthias Clasen [Thu, 19 Jul 2018 21:57:19 +0000 (17:57 -0400)]
Emoji chooser: Also check for hex boxes
We don't want to see those either.
Matthias Clasen [Thu, 19 Jul 2018 21:50:54 +0000 (17:50 -0400)]
moji chooser: Try harder to avoid fallback
We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.
Based on work by Julian Sparber.
Matthias Clasen [Thu, 19 Jul 2018 20:23:29 +0000 (20:23 +0000)]
Merge branch 'gtk-3-24-defaultvalues-ignore-more' into 'gtk-3-24'
defaultvalue: Ignore more style properties that Adwaita overrides
See merge request GNOME/gtk!253
Iain Lane [Thu, 19 Jul 2018 14:45:48 +0000 (15:45 +0100)]
defaultvalue: Ignore more style properties that Adwaita overrides
These broke once we switched away from Raleigh
Daniel Boles [Wed, 18 Jul 2018 22:09:12 +0000 (23:09 +0100)]
NEWS: Remove an accidental tab
Timm Bäder [Tue, 17 Jul 2018 15:33:09 +0000 (17:33 +0200)]
gesturestylus: Clarify a documentation comment
Use the proper gtkdoc syntax for signals.
Matthias Clasen [Wed, 18 Jul 2018 19:55:30 +0000 (15:55 -0400)]
3.23.1
Piotr Drąg [Wed, 18 Jul 2018 15:00:11 +0000 (17:00 +0200)]
Update POTFILES.in
Matthias Clasen [Wed, 18 Jul 2018 11:18:21 +0000 (07:18 -0400)]
Fix up version annotations
The new api here was introduced in 3.24.
Matthias Clasen [Wed, 18 Jul 2018 11:12:41 +0000 (07:12 -0400)]
Add new API to the docs
Matthias Clasen [Wed, 18 Jul 2018 00:23:37 +0000 (00:23 +0000)]
Merge branch 'wip/carlosg/controllers-backport' into 'gtk-3-24'
Wip/carlosg/controllers backport
See merge request GNOME/gtk!246
Balázs Meskó [Tue, 17 Jul 2018 23:11:18 +0000 (23:11 +0000)]
Update Hungarian translation
Carlos Garnacho [Mon, 16 Jul 2018 13:44:35 +0000 (15:44 +0200)]
sm scroll
Carlos Garnacho [Fri, 2 Feb 2018 15:04:17 +0000 (16:04 +0100)]
demos: Add "Paint" demo
Carlos Garnacho [Thu, 1 Feb 2018 16:52:40 +0000 (17:52 +0100)]
gtk: Add GtkGestureStylus
This is a GtkGesture done to deal with stylus events from drawing tablets.
Those have a special number of characteristics that extend a regular
pointer, so it makes sense to wrap that.
Carlos Garnacho [Thu, 22 Mar 2018 17:32:19 +0000 (18:32 +0100)]
gtkeventcontrollerkey: Add ::focus-in/out signals
And handle GDK_FOCUS_CHANGE events in order to emit those.
Carlos Garnacho [Thu, 22 Mar 2018 16:54:52 +0000 (17:54 +0100)]
gtkeventcontrollerkey: Add get_group() call
Callers can use this function on a key-pressed/released signal
to find out the key event group, useful in a few places.
Carlos Garnacho [Sun, 11 Mar 2018 12:38:19 +0000 (13:38 +0100)]
eventcontrollerkey: Add function to forward stuff elsewhere
Carlos Garnacho [Mon, 11 Dec 2017 18:21:38 +0000 (19:21 +0100)]
gtk: Add GtkEventControllerKey
This event controller is meant to replace usage from key-press/release-event
handlers all through. Optionally it can be set a GtkIMContext, so interaction
is carried by the controller.
Matthias Clasen [Tue, 2 Jan 2018 01:07:24 +0000 (20:07 -0500)]
Add x/y to GtkEventControllerMotion::enter
We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.
Update existing users.
Matthias Clasen [Mon, 11 Dec 2017 23:29:33 +0000 (18:29 -0500)]
Add a simple motion eventcontroller
This can serve as a replacement for the legacy
event signals for enter/leave/motion notify.
Matthias Clasen [Wed, 27 Dec 2017 01:04:07 +0000 (20:04 -0500)]
Avoid excess notification for GdkEventControllerScroll::flags
We have a test that checks this, and it is the right thing to do.
Carlos Garnacho [Tue, 31 Oct 2017 11:45:37 +0000 (12:45 +0100)]
gtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags
There is a gtk_event_controller_scroll_set_flags() call that's meant
to be called after construction (eg. due to scrolledwindow relayouts
hiding/showing scrollbars). The property shouldn't be construct-only
for consistence.
Carlos Garnacho [Fri, 1 Dec 2017 23:18:07 +0000 (00:18 +0100)]
gtkeventcontrollerscroll: Add some docs
Timm Bäder [Wed, 11 Oct 2017 06:06:33 +0000 (08:06 +0200)]
eventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps
The > 1 meant it only emits the signal for -2/+2 steps.
Carlos Garnacho [Fri, 15 Sep 2017 11:22:57 +0000 (13:22 +0200)]
gtk: Add GtkEventControllerScroll
This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.
On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.
It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.
Benjamin Otte [Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)]
window: Update opaque region if background-color changes
The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.
However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.
Bruno Lopes da Silva [Tue, 10 Jul 2018 13:02:08 +0000 (13:02 +0000)]
Update Brazilian Portuguese translation
Jakub Steiner [Mon, 9 Jul 2018 15:27:51 +0000 (15:27 +0000)]
Merge branch 'expander-size-3' into 'gtk-3-24'
HighContrast: Restore expander size
See merge request GNOME/gtk!210
Peter Bloomfield [Sun, 8 Jul 2018 21:24:07 +0000 (17:24 -0400)]
text-view: Do not double-allocate borders
Reverts part of Commit
25b67af3
The 'width' part of the commit is the cause of #628: requisition->width
is first set to priv->layout->width, which already includes
priv->left_border + priv->right_border. It's a bit labyrinthine, but
essentially:
* layout->width is set in update_layout_size() (gtktextlayout.c line 992)
as the maximum line width, and
* the line width is set to display->width in gtk_text_layout_real_wrap()
(gtktextlayout.c line 1183), and
* display->width is set to text_pixel_width + h_margin + h_padding in
gtk_text_layout_get_line_display() (gtktextlayout.c line 2584), and
* h_margin + h_padding is the same as priv->left_border +
priv->right_border.
Adding it again leads to an increase in the size-request, which
results in wider lines; rinse and repeat.
Mario Blättermann [Sat, 7 Jul 2018 19:48:26 +0000 (19:48 +0000)]
Update German translation
Samuel Thibault [Thu, 21 Jun 2018 13:58:39 +0000 (15:58 +0200)]
HighContrast: Restore expander size
Expanders used to be 16px high. With the move from the gtk2 rendering
to gtk3 rendering they shrunk to 12px, making them hard to see, because
it's now the icon which is 16px high and the icon contains transparent
borders.
This makes the HighContrast theme use 24px icons instead, to restore
16px expanders. This may expander some containers a bit.
Closes #1046
Jonas Ådahl [Tue, 3 Jul 2018 10:14:57 +0000 (10:14 +0000)]
Merge branch 'fix_wayland_csd_announce' into 'gtk-3-24'
Fix gdk_wayland_window_announce_csd
See merge request GNOME/gtk!221
Daniel Boles [Mon, 2 Jul 2018 20:45:06 +0000 (21:45 +0100)]
Adwaita: Drop some unneeded overrides
The pseudoclasses work fine on the subnodes without having to also apply
`parent:class subnode`.
Daniel Boles [Mon, 2 Jul 2018 19:31:45 +0000 (20:31 +0100)]
ModelButton: Add Since annotation on new prop
Daniel Boles [Mon, 2 Jul 2018 19:11:12 +0000 (20:11 +0100)]
ScrolledWindow: a couple of spelling/grammar fixes
(A) Put a space in "scrolled window" like the other doc comments
(B) Say "i.e." rather than "ie."
(C) Fix grammar from "makes [...] exactly reaches" to "exactly reach"
Daniel Boles [Mon, 2 Jul 2018 19:09:37 +0000 (20:09 +0100)]
ScrolledWindow: Fix/improve doc of key bindings
Saying 'key + modifiers' is really weird, so reverse that, and explain
why there are 2 cited and what the difference between them is.
Daniel Boles [Mon, 2 Jul 2018 19:07:23 +0000 (20:07 +0100)]
ScrolledWindow: Add missing apostrophes
Matthias Clasen [Mon, 2 Jul 2018 17:18:26 +0000 (17:18 +0000)]
Merge branch 'wip/gtk324.win.egl' into 'gtk-3-24'
Add an EGL renderer for GDK-Win32 for GTK+-3.24 (was: merge request !126)
See merge request GNOME/gtk!191
Matthias Clasen [Mon, 2 Jul 2018 17:16:59 +0000 (17:16 +0000)]
Merge branch 'wip/aplazas/modelbutton-markup' into 'gtk-3-24'
ModelButton: Add 'use-markup' property
See merge request GNOME/gtk!219
Daniel Boles [Sun, 1 Jul 2018 15:08:06 +0000 (16:08 +0100)]
PlacesSidebar: Fix warning about signal parameters
@open_flags was not documented, and so:
jhbuild/checkout/gnome/gtk+-3/gtk/gtkplacessidebar.c:4743: Warning: Gtk:
incorrect number of parameters in comment block, parameter annotations
will be ignored.
Adrien Plazas [Mon, 23 Apr 2018 09:06:17 +0000 (11:06 +0200)]
ModelButton: Add 'use-markup' property
Binds this property to the button's label, allowing a model button to
have text with markup.
This will be convenient for buttons like 'Online Accounts <sup>↗</sup>'.
Daniel Boles [Fri, 29 Jun 2018 18:02:15 +0000 (19:02 +0100)]
themes: Remove Raleigh
It has been extremely broken since the move to CSS gadgets/nodes, so
clearly no one is depending on it; nor does anyone seem to want to
resurrect it, and writing a Raleigh-inspired theme from scratch would be
faster if they did. So let's drop the dead weight from the build and lib
Now that we don't have Raleigh, the defaultvalue test has to be changed
to set Adwaita before checking the default values of style properties -
some of which Adwaita overrides in its CSS, meaning those would fail.
Not that it passed before anyway! But it does now after my other commit.
Note that I leave the last reference in gtk-zip.sh.in alone since that
hasn't been touched in 8 years and probably has plenty other problems...
Close https://gitlab.gnome.org/GNOME/gtk/issues/1187
Daniel Boles [Fri, 29 Jun 2018 18:57:06 +0000 (19:57 +0100)]
defaultvalue: Fix some very broken indentation
and while here, use the more typical : to separate the type and property
Daniel Boles [Fri, 29 Jun 2018 17:53:54 +0000 (18:53 +0100)]
defaultvalue: Ignore property to actually pass
GtkFontChooserWidget:tweak-action gets set in init(), so we have to skip
testing that it is the default NULL for a GObject, or the test fails.
Daniel Boles [Fri, 29 Jun 2018 17:38:15 +0000 (18:38 +0100)]
defaultvalue: Stop warnings via new g_object_ref()
Now that it can propagate the type, we must explicitly cast to GObject*
to assign it, otherwise gcc shouts.
Daniel Boles [Fri, 29 Jun 2018 17:36:14 +0000 (18:36 +0100)]
defaultvalue test: Remove obsolete properties
Matthias Clasen [Fri, 29 Jun 2018 14:30:51 +0000 (14:30 +0000)]
Merge branch 'wip/cursor-output-scale-changes-3-24' into 'gtk-3-24'
wayland: Update cursor surface scale when output scale changes
See merge request GNOME/gtk!223
David Edmundson [Thu, 28 Jun 2018 17:41:22 +0000 (18:41 +0100)]
wayland: Use correct enums in server_decoration_request_mode
The enum is duplicated in the spec for the manager and the decoration
object. We should be using the right ones. In practice they have the
same value, so this bug didn't cause any issues.
David Edmundson [Thu, 28 Jun 2018 17:09:47 +0000 (18:09 +0100)]
wayland: Respond to server_decoration.mode events
David Edmundson [Thu, 28 Jun 2018 10:13:33 +0000 (11:13 +0100)]
wayland: Fix memory leak in server decoration object
The server decoration object becomes invaid when the wl_surface is
deleted. We should tidy it up then.
David Edmundson [Thu, 28 Jun 2018 10:12:59 +0000 (11:12 +0100)]
wayland: Reset server decoration interface on window mapping
The wl_surface is destroyed and recreated when the window is
mapped/unmapped. As we have a new wl_surface we need to create a new
server_decoration object for that surface.
David Edmundson [Mon, 25 Jun 2018 16:06:33 +0000 (17:06 +0100)]
wayland: Explicitly request mode for both CSD and SSD modes
According to the spec compositors were to assume surfaces are CSD until
told otherwise. This means we need to send
org_kde_kwin_server_decoration_request_mode in both cases.
This fixes libreoffice under kwin, which would remove it's own headers
as per the manager's request but not inform kwin leaving it in the even
more broken state of having none.
Jonas Ådahl [Thu, 28 Jun 2018 09:41:09 +0000 (11:41 +0200)]
wayland: Update cursor surface scale when output scale changes
Cursor surfaces didn't listen for output scale changes, meaning they
didn't adapt their scale when an output changed scale, which could
happen for example when changing the monitor scale via Settings.
Chun-wei Fan [Wed, 20 Jun 2018 09:27:30 +0000 (17:27 +0800)]
GDK/Win32: Cleanup and further fix OpenGL/ES glitches
We also need to invalidate the OpenGL/ES window when we resize the
window via a mouse drag operation, so that we don't get glitches in such
situations, because they are not covered in GdkWindow's
impl_class->move_resize().
Make sure that we only force the invalidation when necessary (as it is
expensive), and clean up the gdkevents-win32.c code so that we include
gdkglcontext-win32.h in the right place instead of using an extern, as
we need to invalidate the window accordingly.
Chun-wei Fan [Tue, 22 May 2018 10:05:35 +0000 (18:05 +0800)]
GDK-Win32: Fix glitches when using EGL/ANGLE
We need to force redraws of the whole window when we are using EGL/ANGLE
during maximize, restore and Aerosnap ops so that we do not get glitches
in the resulting window.
Chun-wei Fan [Fri, 27 Apr 2018 15:30:32 +0000 (23:30 +0800)]
Add a EGL renderer (via ANGLE) for Windows
This is for adding a EGL-based renderer which is done via the ANGLE
project, which translate EGL calls to Direct3D 9/11. This is done as a
possible solution to issue #105, especially for cases where the needed
full GL extensions to map OpenGL to Direc3D is unavailable or
unreliable, or when the OpenGL implementation from the graphics drivers
are problematic.
To enable this, do the following:
-Build ANGLE and ensure the ANGLE libEGL.dll and libGLESv2.dll are
available. A sufficiently-recent ANGLE is needed for things to
work correctly--note that the copy of ANGLE that is included in
qtbase-5.10.1 is sufficient. ANGLE is licensed under a BSD 3-clause
license. Note also that Visual Studio 2013 or later is required to
build ANGLE from QT-5.10.1, but the 2013-built ANGLE DLLs can work
without without problems for GTK+ that is built with Visual Studio
2008 or later.
-Build libepoxy on Windows with EGL support enabled.
-Define GDK_WIN32_ENABLE_EGL when building gdk-win32.lib when building
with Visual Studio, or pass in --enable-win32-gles during configure
when building with MinGW/mingw-w64.
-Prior to running GTK+ programs, the GDK_GL envvar needs to contain
gles.
Known issues:
-Only OpenGL ES 3 is supported, ANGLE's ES 2 does not support the needed
extensions, notably GL_OES_vertex_array_object, but its ES 3 support is
sufficient.
-There is no autodetection or fallback mechanism to enable using
EGL/Angle automatically yet. There is no plans to do this in this
commit.
Thanks to LRN for pointing out that we should #include
"win32/gdkwin32.h" instead of #include "gdkwin32.h" for gdkgl.c. LRN
also did the autotools portion of this patch.
Further notes about the autotools --enable-win32-gles option, fom LRN:
This adds --enable-win32-gles option, which enables the
code for GLES renderer. This commit also adds tests for WGL and
EGL in epoxy. The absence of WGL is highly unlikely (it's enabled
by default), but checking for EGL when GLES is enabled is necessary,
as EGL is disabled in Windows builds of epoxy by default.
Emmanuele Bassi [Wed, 27 Jun 2018 18:26:02 +0000 (18:26 +0000)]
Merge branch '324.win32.build' into 'gtk-3-24'
GTK+: Fix dist and build on Windows
See merge request GNOME/gtk!207
Chun-wei Fan [Wed, 20 Jun 2018 10:21:05 +0000 (18:21 +0800)]
demos/gtk-demo/gtkfishbowl.c: Include gtk/fallback-c89.c
...in place of math.h, as we are using round(), which is possibly not
provided by the compiler since we don't require a C99 compiler in
GTK+-3.x and gtk/fallback-c89.c does include math.h anyways.
Chun-wei Fan [Wed, 20 Jun 2018 10:13:44 +0000 (18:13 +0800)]
gtk/: Fix build without PangoFT2 and HarfBuzz
On Windows HarfBuzz and PangoFT2 are optional, so we need to ensure that
we only build the bits that require HarfBuzz and PangoFT2 when needed.
We may need to see later whether we can get the needed functionality in
gtkfontchooserwidget.c with the Windows APIs without the need of
HarfBuzz nor PangoFT2 (and starting programs on Windows using FontConfig
is very slow).
Chun-wei Fan [Wed, 20 Jun 2018 10:10:33 +0000 (18:10 +0800)]
gtk/Makefile.am: Dist the newly-added private headers
We need to dist language-names.h and script-names.h so that we won't
be missing headers in a dist tarball.
Benjamin Otte [Tue, 26 Jun 2018 02:13:24 +0000 (04:13 +0200)]
progressbar: Never stop never stopping
Reinstate code that was accidentally deleted during the port to
GtkProgressTracker in commit
d57ebe2de7d.
Without that code, pulsing the progressbar will stop doing anything
after 3 iterations.
Matthias Clasen [Mon, 25 Jun 2018 22:51:45 +0000 (18:51 -0400)]
Don't forget to dist open-type-layout.h
This is a private header, but it still needs to end up in the tarball.
Matthias Clasen [Mon, 25 Jun 2018 21:13:24 +0000 (21:13 +0000)]
Merge branch 'issue1170' into 'gtk-3-24'
modules: fix gtk-2.0 paths to gtk-3.0
See merge request GNOME/gtk!211
Matthias Clasen [Mon, 25 Jun 2018 18:57:52 +0000 (18:57 +0000)]
Merge branch 'mcatanzaro/#1174' into 'gtk-3-24'
imwayland: Fix a small leak
See merge request GNOME/gtk!218